package cn.changein.framework.modular.system.model;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 用户传输bean
 *

 * @date: 2020-02-17
 * @copyright: 广州澄境科技有限公司
 */
@Data
public class UserDTO {

    private Long userId;

    @NotBlank
    private String account;

    private String password;

    @NotBlank
    private String name;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private String sex;

    private String email;

    private String phone;

    private String roleId;

    @NotNull
    private Long deptId;

    private String status;

    private String avatar;

    private String roleName;

    private String deptName;

    private Integer adminFlag;

    private Long parentId;

}
